Skip to content

[type:feature] Custome classloader hot load plugins to gateway. - #5403

Closed
lahmXu wants to merge 134 commits into
apache:masterfrom
lahmXu:class_isolation
Closed

lahmXu wants to merge 134 commits into
apache:masterfrom
lahmXu:class_isolation

Conversation

@lahmXu

@lahmXu lahmXu commented Jan 17, 2024 •

Copy link
Copy Markdown
Member

The function points are as follows:

  1. Package the sofa and motan plugins independently, placed in the plugins directory through a separate classloader to load the jar package.
  2. Enable motan, sofa plugins e2e test.
  3. Solve the problem of hession conflict when sofa and motan plugins are enabled together.

@moremind moremind added this to the 2.7.0 milestone Feb 2, 2024
@Aias00

Aias00 commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

Review note (PMC Aias00): open since Jan 2024, conflicts with master, and is a very large (~193-file) change that has effectively rotted. Please rebase if you intend to pursue it; otherwise we will close it as stale.

@Aias00 Aias00 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes — this PR cannot be reviewed in its current state

Blocking: conflicts with master and cannot be rebased cleanly

mergeable:        false
mergeable_state:  dirty
rebaseable:       false

The branch has real conflicts against master. On top of that:

  • 134 commits, 193 changed files, +1648 / -721.
  • Last commit: 2024-01-18. The PR has been dormant for roughly two and a half years, while master has moved substantially (namespace support across admin/plugins, the plugin isolation rework, the k8s controller rewrite, etc.).
  • No check runs are reported on the class_isolation branch, so there is no build evidence for this change at all.
  • 48 of the touched paths are under shenyu-plugin-motan / shenyu-plugin-sofa / their starters and e2e cases. Those modules are themselves targeted for removal in #6308 ("remove sofa support"), so a significant portion of this diff is about to be deleted regardless of what happens here.

Because the diff is computed against a two-year-old merge base, most of what I see is drift rather than intent, and I cannot tell which parts are the actual feature and which are stale reformatting. Reviewing it as-is would produce comments on code that no longer exists.

What I need from you

  1. Rebase onto current master and resolve the conflicts. Given rebaseable: false, a git rebase may be painful — if the conflicts are too tangled, opening a fresh PR from a clean branch off current master with just the feature commits cherry-picked is likely faster and will produce a reviewable diff.
  2. Narrow the scope to the feature itself. The custom-classloader hot-load work is in shenyu-web/loader/* (ShenyuPluginClassLoader, ShenyuLoaderService, ShenyuExtPathPluginJarLoader, PluginJarParser) and the isolation starter. The 150+ unrelated files (event DTOs, VO/query classes, e2e cases, pom.xml churn, script/clean_duplicated_jar.sh, .github/workflows/e2e-k8s.yml) should be dropped from this PR — several of them look like merge artifacts rather than deliberate changes.
  3. Drop or defer the motan/sofa portions, given #6308.
  4. Get a green build on the rebased branch so the change can actually be validated.

Please ping me once it is rebased and the diff is scoped to the feature; I will review it properly then. Until then I am leaving this as changes-requested.

@lahmXu

lahmXu commented Sep 24, 2026

Copy link
Copy Markdown
Member Author

Expired implementation; no need to pay attention to it again.

@lahmXu lahmXu closed this Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants